//
//  ZJPDFReaderView.h
//  ZJControlsClass
//
//  Created by 陈旭 on 2024/12/9.
//

#import <UIKit/UIKit.h>

NS_ASSUME_NONNULL_BEGIN

@protocol ZJPDFReaderViewDelegate <NSObject>
@required
- (void)pdfReaderDidUpdateCurrentPage:(NSInteger)currentPage totalPages:(NSInteger)totalPages;
@end

@interface ZJPDFReaderView : UIView
//@property (nonatomic, strong, readonly) UIPageViewController *pageViewController;
//@property (nonatomic, assign, readonly) NSInteger numberOfPages;
//@property (nonatomic, assign, readonly) NSInteger currentPage;

//- (instancetype)initWithFrame:(CGRect)frame pdfURL:(NSURL *)pdfURL;

@property (nonatomic, strong) NSURL *pdfURL;
@property (nonatomic, weak) id<ZJPDFReaderViewDelegate> delegate;
- (void)goToPage:(NSInteger)pageNumber animated:(BOOL)animated;
- (void)goToPreviousPage:(BOOL)animated;
- (void)goToNextPage:(BOOL)animated;

@end

NS_ASSUME_NONNULL_END
